package com.sumainfor.wx.tenant.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.fallback.ZuulFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author PuaChen
 * @Create 2019-01-25 14:36
 * 路由调用
 */
@FeignClient(value = "TANGNEST-ZUUL",fallback = ZuulFeignClientFallback.class)
public interface ZuulFeignClient{


    /**
     * 功能描述:
     * 根据当前公司编号获取公司微信支付账户资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/26 18:29
     */
    @GetMapping("/provider/area/getAreaPayMap")
    JsonResult getAreaPayMap(@RequestParam Map<String,Object> params);

    /**
     * 获取签约公司名称
     * @param params
     * @return
     */
    @GetMapping("/provider/tenant/getAreaid")
    JsonResult getAreaid(@RequestParam Map<String,Object> params);

}
